<?php
/**
 * Created by IntelliJ IDEA.
 * User: Administrator
 * Date: 2019/12/4
 * Time: 11:27
 */
use think\facade\Route;

//    搜索
Route::get('search', function (){
    echo 1234;
});
////    搜索
//Route::get('search', 'search/index')
//    ->middleware('sign', 1)
//    ->middleware('required', ['search']);
//    版本1
Route::group('v1',function (){
    //    登录
    Route::post('login/:play','/login/:play');
//    Route::post('login/:play',function ($play){
//        echo $play;
//    });
})->prefix('v1');

Route::post('search', 'search/index')
    ->middleware('sign', 1)
    ->middleware('required', ['search']);